package com.ftg.learn.chapter08.baidicheng.zengwanglun;

/**
 * 人 类
 *
 * @author lijiaxin
 * @version 1.0
 * @date 2023/7/23 14:29
 */

public class Human {

    String name;

    public void go(){
        System.out.println(this.getName()+"上船");
    }
    public void listen(){
        System.out.println(this.getName()+"听到歌声");
    }
    public void look(Water a1){
        System.out.println(this.getName()+"看到"+a1.getDepth()+"米的"+a1.getName());
    }
    public  void think(){
        System.out.println("比不上"+this.getName()+"的情谊");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
